package com.wondersgroup.restbase.entity;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;

@Embeddable
public class TimeTrackingData {
//    @Column(name = "created_at", updatable = false)
	@Column(name = "create_date", updatable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date createdAt;

//    @Column(name = "updated_at")
	@Column(name = "update_date")
    @Temporal(TemporalType.TIMESTAMP)
    private Date updatedAt;

    public TimeTrackingData(){

    }

    public TimeTrackingData(Date createdAt, Date updatedAt){
        this.createdAt = createdAt;
        this.updatedAt = updatedAt;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }
}
